package org.csmzxy.class2333;

public class play {
    public static void main(String[] args){
        int[] arr1 = {5,60,52,74,1};
        int daiti = 0;
        for(int i = 0; i < arr1.length - 1; i++){
            for(int j = 0; j < arr1.length - i - 1; j++){
                if (arr1[j] > arr1[j+1]){
                    daiti = arr1[j];
                    arr1[j] = arr1[j+1];
                    arr1[j+1] = daiti;
                }
            }
        }
        for (int i = 0; i < arr1.length; i++){
            System.out.print(arr1[i]+"\t");
        }
    }
}
